#    Stingingnettlepy - A website generator for creating simple static websites.
#    Copyright (C) 2013  Jannik Haberbosch
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.


# Standard Python modules.
import os
import os.path

# Predefined relative paths:
RELPATH_TEMPLATES = os.path.join( "in", "templates" )
RELPATH_SITE_STRUCTURE = os.path.join( "in", "site_structure.json" )
RELPATH_PAGES = os.path.join( "in", "pages" )
RELPATH_OUT = os.path.join( "out")
RELPATH_IN = os.path.join( "in" )
RELPATH_OUT_CSS = os.path.join( RELPATH_OUT, "_css" )
RELPATH_OUT_DOWNLOADS = os.path.join( RELPATH_OUT, "_downloads" )
RELPATH_OUT_MEDIA = os.path.join( RELPATH_OUT, "_media" )
RELPATH_OUT_JS = os.path.join( RELPATH_OUT, "_js" )

# Constants for initialising a website project directory.
INIT_RELPATHS = [
	RELPATH_IN,
	RELPATH_TEMPLATES,
	os.path.join( RELPATH_TEMPLATES, "default.html" ),
	os.path.join( "in", "_css" ),
	os.path.join( "in", "_js" ),
	os.path.join( "in", "_media" ),
	os.path.join( "in", "_downloads" ),
	os.path.join( RELPATH_PAGES ),
	RELPATH_SITE_STRUCTURE,
	RELPATH_OUT
]


# File endings.
EXT_HTML = ( ".html" )
EXT_PYTHON = ( ".py" )
FILE_ENDINGS = ( EXT_HTML,  EXT_PYTHON, ".json" )



# Error messages.
MSG_ERR_DIR_NOT_EMPTY = "ERROR:  The directory '%s' is not empty."
ERR_MSG_LOAD_SITE_STRUCTURE = "ERROR:  Error when reading the file '%s': %s."
MSG_ERR_TEMPLATE_DOES_NOT_EXIST = "ERROR:  The template '%s' does not exist."

# Default template.
DEFAULT_TEMPLATE = "default"
